/*
 * MyMessage.cpp
 *
 *  Created on: 26/06/2009
 *      Author: banouz
 */

#include "MyMessage.h"

MyMessage::MyMessage()
{

}

MyMessage::~MyMessage()
{
}

MyMessage::MyMessage(string to,string from,int type,string regMess,
    map<string, vector<string> > *Rt){
      _to = to;
      _from = from;
      _type = type;
      _regMess = regMess;

      _treated = 0;

      map<string, vector<string> >::iterator iter;


      	for( iter = Rt->begin(); iter != Rt->end(); ++iter ) {
      		string tStri = iter->first;
      		vector<string> tVec   ;//= (*iter).second  ;
      		//vector<string> tAnsVec;
string s = (iter->second)[0];
      		tVec.push_back((iter->second)[0]);
tVec.push_back((iter->second)[1]);
tVec.push_back(s);
      		//tVec[0] = "I";//(iter->second)[0];
      		//cout << "sssssss :   " << tVec[0].compare("Infinity")<<endl;
      		//tVec[1] = (iter->second)[1];
      		_Rt.insert( make_pair( tStri, tVec ));
      	}
    }
/*MyMessage::MyMessage(const MyMessage& MyMy) {
   _to = *MyMy.getTo();
    _from =  *MyMy.getFrom();
    _type =  *MyMy.getType();
    _regMess =  *MyMy.getRegMess();
    _Rt =  *MyMy.getRt();
    _treated =  *MyMy.getTreated();

}*/
